home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5697 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.1 KB  |  37 lines

  1. Path: stern.fokus.gmd.de!news
  2. From: Watson <sayegh@fokus.gmd.de>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Looking for a clear screen function
  5. Date: Tue, 20 Feb 1996 12:11:51 +0100
  6. Organization: GMD FOKUS - Research Institute for Open Communication Systems
  7. Message-ID: <3129AC77.5F25@fokus.gmd.de>
  8. References: <4gaeba$d9h@nkosi.well.com>
  9. NNTP-Posting-Host: pollux.fokus.gmd.de
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=iso-8859-2
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (X11; I; SunOS 5.4 sun4m)
  14.  
  15. rickyarm@well.com wrote:
  16. > Hello there,
  17. > Does anyone know of a clear screen function to use both in turboC++ on
  18. > a PC and one to use in standard C for Unix machines
  19.  
  20. #include<stdio.h>
  21. for (int i=0;i<25;i++)
  22.     printf("\n");
  23.  
  24. This works at least on a screen with 25
  25. lines :-)
  26.  
  27. There's no standard function to clear
  28. the screen. In TurboC I guess it's clrscr()
  29. (prototyped in <conio.h>), with Unix it's
  30. clear()/wclear() (<curses.h>).
  31. -- 
  32. *    Greetinx from Watson (sayegh@fokus.gmd.de)
  33.     http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
  34.     signal(SIGSEGV,SIG_IGN);
  35.